﻿using Microsoft.AspNetCore.Components.Routing;
using Prism.Events;
using Prism.Ioc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sigma.Admin.Client.ViewModels
{
    public class IndexViewModel : NavigationViewModel
    {
        public IndexViewModel(IEventAggregator ea, IContainerProvider containerProvider) : base(ea, containerProvider)
        {
            Token = AppSession.Instance.Token;
        }

        private string token;

        public string Token
        {
            get { return token; }
            set { token = value;RaisePropertyChanged(); }
        }


        //public virtual void OnNavigatedTo(NavigationContext navigationContext)
        //{
        //    Token = AppSession.Instance.Token;
        //}
    }
}
